<?php
/*
* Copyright (c) 2010 by Cediti
*
* You may distribute under the terms of either the GNU Lesser General
* Public License or the new BSD License, as specified in the README file.
*/
// created :	18 March 2010
// version :	18 March 2010

/**
 * Indicates the level of support for ACLs by the repository
 *  none: The repository does not support ACL services
 *  discover: The repository supports discovery of ACLs (getACL and other services)
 *  manage: The repository supports discovery of ACLs AND applying ACLs (getACL and applyACL services)
 */
class Cmis_Repository_Capability_Acl extends Cmis_Repository_Capability_Abstract
{
	const VALUE_NONE = 'none';
	const VALUE_DISCOVER = 'discover';
	const VALUE_MANAGE = 'manage';

	protected function _setValue($value)
	{
		$this->_value = trim($value);
		switch ($this->_value)
		{
			case self::VALUE_DISCOVER :
			case self::VALUE_MANAGE :
			case self::VALUE_NONE :
				break;
			default:
				$this->_value = self::VALUE_NONE;
		}
	}
}

# EOF
